package cn.assumejson.ioc;

import cn.assumejson.ioc.config.AppConfig;
import cn.assumejson.ioc.service.OrderService;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * Spring base
 *
 * @author by gang.Li 2022/9/6 18:38
 */
public class ManStart {
	public static void main(String[] args) {
		AnnotationConfigApplicationContext applicationContext = new AnnotationConfigApplicationContext(AppConfig.class);
		OrderService orderService = applicationContext.getBean(OrderService.class);
		orderService.printOrderSn();
	}
}
